package com.wxmblog.photo.service.impl;

import com.wxmblog.base.common.utils.TokenUtils;
import com.wxmblog.base.file.service.IFileService;
import com.wxmblog.base.file.service.IMsfFileService;
import com.wxmblog.base.file.service.MsfFileService;
import com.wxmblog.photo.service.DownloadRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: fast
 * @description:
 * @author: Mr.Wang
 * @create: 2023-06-28 13:52
 **/

@Service
public class FileDownloadServiceImpl implements IMsfFileService {

    @Autowired
    DownloadRecordService downloadRecordService;

    @Override
    public void before(String s) {

    }

    @Override
    public void after(String s) {
        downloadRecordService.saveDownloadRecord(s, TokenUtils.getOwnerId());
    }
}
